import request from '@/utils/request'

// 查询语音通知记录列表
export function listVoiceNotify(query) {
  return request({
    url: '/voiceNotify/voiceNotify/list',
    method: 'get',
    params: query
  })
}

// 查询语音通知记录详细
export function getVoiceNotify(id) {
  return request({
    url: '/voiceNotify/voiceNotify/' + id,
    method: 'get'
  })
}

// 新增语音通知记录
export function addVoiceNotify(data) {
  return request({
    url: '/voiceNotify/voiceNotify',
    method: 'post',
    data: data
  })
}

// 修改语音通知记录
export function updateVoiceNotify(data) {
  return request({
    url: '/voiceNotify/voiceNotify',
    method: 'put',
    data: data
  })
}

// 删除语音通知记录
export function delVoiceNotify(id) {
  return request({
    url: '/voiceNotify/voiceNotify/' + id,
    method: 'delete'
  })
}
